package com.qf.controller;

import com.qf.j2105.po.Task;
import com.qf.service.TaskService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/emp")
public class EmpControler {
    @Autowired
    private TaskService taskService;
    @RequestMapping(value = "/selectone/{id}",method = RequestMethod.GET)
    public Task selectone(@PathVariable("id") int id){
        Task task = taskService.queryById(id);
        return task;
    }
}
